package LuoGu.暴力.我的世界;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        int m = s.nextInt();
        int k = s.nextInt();
        int [][] temp = new int[n][n];
        for(int i=0;i<m;i++){
            int x = s.nextInt()-1;
            int y = s.nextInt()-1;
            temp[y][x] = 1;
            for(int j=-1;j<2;j++){
                for(int kk=-1;kk<2;kk++){
                    int nx = x+j;
                    int ny = kk+y;
                    if(nx>=0&&ny>=0&&nx<n+1&&ny<n+1){
                        temp[ny][nx] = 1;
                    }
                }
            }
            if(x>=0&&y-2>=0&&x<n&&((y-2)<n)){
                temp[y-2][x] = 1;
            }if(x>=0&&y+2>=0&&x<n&&((y+2)<n)){
                temp[y+2][x] = 1;
            }if(x-2>=0&&y>=0&&(x-2)<n&&y<n){
                temp[y][x-2] = 1;
            }if(x+2>=0&&y>=0&&x+2<n&&y<n){
                temp[y][x+2] = 1;
            }
        }
        for(int i=0;i<k;i++){
            int o = s.nextInt()-1;
            int p = s.nextInt()-1;
            temp[p][o] = 1;
            for(int j=-2;j<3;j++){
                for(int kk=-2;kk<3;kk++){
                    int nx = o+j;
                    int ny = kk+p;
                    if(nx>=0&&ny>=0&&nx<n&&ny<n){
                        temp[ny][nx] = 1;
                    }
                }
            }
        }
        int ans = 0;
        for(int i=0;i<n;i++){
            for(int j=0;j<n;j++){
                if(temp[i][j]==0) ans++;
            }
        }
        System.out.print(ans);
    }
}
